【继承】super

https://mozillazg.com/2016/12/python-super-is-not-as-simple-as-you-thought.html

认知

主要用在python的子类继承父类的方法

python3的使用方法:super().xxx #xxx是待继承的函数

python2的使用方法:super(Class, self).xxx #Calss是待继承的父类名称

函数

results matching ""

    No results matching ""